﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewAI.FSM.SocketConnectFSM
{
    public class ReceiveGameServerMsgState:State<AIClientSocket>
    {
        private string recvMsg;

        public ReceiveGameServerMsgState(string recvData)
        {
            recvMsg = recvData.Substring(5, recvData.Length - 5);
        }

        public override void Enter(AIClientSocket entity)
        {
            entity.ReceiveGameServerDataMessage.Call(null, new FSMEventEventArg(recvMsg));
        }
    }
}
